package com.java110.intf.cart;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.storeOrder.StoreOrderUpDto;
import com.java110.po.storeOrder.StoreOrderUpPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IStoreOrderUpInnerServiceSMO
 * @Description 挂单接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-cart", configuration = {FeignConfiguration.class})
@RequestMapping("/storeOrderUpApi")
public interface IStoreOrderUpInnerServiceSMO {


    @RequestMapping(value = "/saveStoreOrderUp", method = RequestMethod.POST)
    public int saveStoreOrderUp(@RequestBody StoreOrderUpPo storeOrderUpPo);

    @RequestMapping(value = "/updateStoreOrderUp", method = RequestMethod.POST)
    public int updateStoreOrderUp(@RequestBody  StoreOrderUpPo storeOrderUpPo);

    @RequestMapping(value = "/deleteStoreOrderUp", method = RequestMethod.POST)
    public int deleteStoreOrderUp(@RequestBody  StoreOrderUpPo storeOrderUpPo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param storeOrderUpDto 数据对象分享
     * @return StoreOrderUpDto 对象数据
     */
    @RequestMapping(value = "/queryStoreOrderUps", method = RequestMethod.POST)
    List<StoreOrderUpDto> queryStoreOrderUps(@RequestBody StoreOrderUpDto storeOrderUpDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param storeOrderUpDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryStoreOrderUpsCount", method = RequestMethod.POST)
    int queryStoreOrderUpsCount(@RequestBody StoreOrderUpDto storeOrderUpDto);
}
